package wanbang.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import wanbang.service.SubmitCartService;

@Controller
public class SubmitCartController {
	@Autowired
	private  SubmitCartService submitCartService;
	@RequestMapping("/submitCart")
	public void submitCart(Integer bookId,Integer userId,Integer cartNumber) {
		this.submitCartService.submitCart(bookId, userId, cartNumber);
	}
	@RequestMapping("/submitAllCart")
	public void submitAllCart(Integer userId) {
		this.submitCartService.submitAllCart(userId);
	}
}
